import UIKit

class ViewController: UIViewController {
    
    lazy var dateView: NLLiveTimerLabel = {
        let dateView = NLLiveTimerLabel()
        dateView.endTime = 1568961200
        return dateView
    }()
    
    

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.cyan
        
//        view.addSubview(dateView)
//        
//        dateView.frame = CGRect(x: 100, y: 200, width: 170, height: 40)
        
        let button = UIButton(frame: CGRect(x: 100, y: 100, width: 150, height: 40))
        button.setTitle("进入TableView", for: UIControl.State.normal)
        button.titleLabel?.font = UIFont.systemFont(ofSize: 14)
        button.backgroundColor = UIColor.blue
        view.addSubview(button)

        button.addTarget(self, action: #selector(buttonClick), for: UIControl.Event.touchUpInside)
        
    }
    
    
    @objc func buttonClick() {
        let vc = SecondViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}

